package com.crane.oss.sys.bean.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Getter
@Setter
@ToString
@ApiModel(description = "登录参数")
public class LoginRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户名", name = "username", required = true)
    @NotNull(message = "用户名不能为空")
    private String username;

    @ApiModelProperty(value = "密码", name = "password", required = true)
    @NotNull(message = "密码不能为空")
    private String password;

//	@ApiModelProperty(value = "验证码", name = "captcha", required = true)
//	@NotNull(message = "验证码不能为空")
//	private String captcha;

    @ApiModelProperty(value = "登录验证码", name = "loginCode", required = true)
    @NotNull(message = "登录验证码不能为空")
    private String loginCode;

}
